xenpaging: add cmdline interface for pager
authorOlaf Hering <olaf@aepfle.de>
Sun, 20 Nov 2011 16:02:48 +0000 (17:02 +0100)
committerOlaf Hering <olaf@aepfle.de>
Sun, 20 Nov 2011 16:02:48 +0000 (17:02 +0100)
commit6ca25a68ea914dd9c53d837db6d2f54ee823ca4d
tree8a2d1621718c870ec35c106951c32e33901c157d
parent9377817185248967b71b4083e04c9d76bd65cffd
xenpaging: add cmdline interface for pager

Introduce a cmdline handling for the pager. This simplifies libxl support,
debug and mru_size are not passed via the environment anymore.
The new interface looks like this:

xenpaging [options] -f <pagefile> -d <domain_id>
options:
 -d <domid>     --domain=<domid>         numerical domain_id of guest. This option is required.
 -f <file>      --pagefile=<file>        pagefile to use. This option is required.
 -m <max_memkb> --max_memkb=<max_memkb>  maximum amount of memory to handle.
 -r <num>       --mru_size=<num>         number of paged-in pages to keep in memory.
 -d             --debug                  enable debug output.
 -h             --help                   this output.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
tools/xenpaging/xenpaging.c
tools/xenpaging/xenpaging.h